<template>
  <div id="app-c">
    <router-view></router-view>
  </div>
</template>

<script>
  import Vue from 'vue';

  export default {
    name: 'app',
    components: {},
    mounted: function () {
      let user = window.sessionStorage.getItem("userInfo")
      if (user == null) {
        this.$router.replace('/login');
      } else if (true) {

      } else {
        this.$router.replace('/main');
      }
    }

  }

</script>

<style lang="scss">
  @import url("./css/reset.css");
  @import url("./css/style.css");

  #app-c {
    height: 100%;
  }

</style>
